﻿using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
using ShootSearch.Common;
using System.Text.RegularExpressions;
using ShootSearch.Util.Serializers;
using System.Diagnostics;

namespace ShootSearch.Tests.Common
{
    [TestFixture]
    public class RuleTests
    {
        [Test]
        public void SerializeTest()
        {
            Rule rule = new Rule();
            rule.Options = RegexOptions.Compiled | RegexOptions.RightToLeft;
            rule.Pattern = "\\w";
            rule.Name = "the name";
            //rule.GroupName = "xp";

            string xml = XmlFormatter.ToXml(rule);
            Debug.WriteLine(xml);

        }
    }
}
